package com.raph.user;

import com.google.gson.Gson;

public class User {
    private String uid;
    private String username;
    private String password;

    public User() {}

    public User(String json) {
        User temp = new Gson().fromJson(json, User.class);
        this.uid = temp.uid;
        this.username = temp.username;
        this.password = temp.password;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }
}
